package com.sikaryofficial.system.api;

import com.sikaryofficial.common.core.constant.ServiceNameConstants;
import com.sikaryofficial.common.core.domain.R;
import com.sikaryofficial.system.api.factory.RemoteQrCodeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 举报接口
 *
 * @author qinjinyuan
 */
@FeignClient(contextId = "remoteQrCodeService", value = ServiceNameConstants.QRCODE_SERVICE, fallbackFactory = RemoteQrCodeFallbackFactory.class)
public interface RemoteQrCodeService {
    /**
     * 二维码存在性判定
     * @param param
     * @return
     */
    @GetMapping("/base/existProductQrCode/{param}")
     R<Boolean> existProductQrCode(@PathVariable(name = "param") String param);
    /**
     * 判定是否被扫码(是否获取100积分)
     * @param param
     * @return
     */
    @GetMapping("/base/verifyScanCode/{param}")
    R<Boolean> verifyScanCode(@PathVariable(name = "param") String param);

    /**
     * 设置扫码状态(是否获取100积分)
     * @param param
     * @return
     */
    @GetMapping("/base/updateProductQrData/{param}")
    R<Boolean> updateProductQrData(@PathVariable(name = "param") String param);
}
